package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.AppUserDao;
import io.renren.modules.generator.entity.AppUserEntity;
import io.renren.modules.generator.service.AppUserService;



@Service("appUserService")
public class AppUserServiceImpl implements AppUserService {
	@Autowired
	private AppUserDao appUserDao;
	
	@Override
	public AppUserEntity queryObject(String username){
		return appUserDao.queryObject(username);
	}
	
	@Override
	public List<AppUserEntity> queryList(Map<String, Object> map){
		return appUserDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return appUserDao.queryTotal(map);
	}
	
	@Override
	public void save(AppUserEntity appUser){
		appUserDao.save(appUser);
	}
	
	@Override
	public void update(AppUserEntity appUser){
		appUserDao.update(appUser);
	}
	
	@Override
	public void delete(String username){
		appUserDao.delete(username);
	}
	
	@Override
	public void deleteBatch(String[] usernames){
		appUserDao.deleteBatch(usernames);
	}
	
}
